import request from '@/utils/request'

export function findAllByPage(params) {
  return request({
    url: '/base/shelves/list',
    method: 'get',
    params
  })
}

export function deleteBtach(ids) {
  return request({
    url: '/base/shelves/delete',
    method: 'post',
    params:{ ids:ids }
  })
}

export function add(data) {
  return request({
    url: '/base/shelves/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/base/shelves/update',
    method: 'post',
    data
  })
}
export function uploadExcel(data) {
  return request({
    url: '/base/shelves/upload/excel',
    method: 'post',
    data
  })
}
